#!/usr/bin/env python

import sys

# genome_id gene_id e_value gene_start  gene_end    genome_start  genome_end
format_output = lambda s: "%s\t%s\t%s\t%s\t%s\t%s\t%s\n" % (s[1], s[0], s[10], s[6], s[7], s[8], s[9])

def main():
    for line in sys.stdin:
        spl = line.rstrip('\n').split('\t')
        sys.stdout.write( format_output(spl) )


if __name__ == '__main__':
    
    main()

